package org.abc.fund.entity.trade;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Embeddable
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Holding {

  @Column(nullable = false)
  private String fundCode;

  @Column(nullable = false, precision = 19, scale = 4)
  private BigDecimal shares;
}
